<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Showing Tools Using Display Tags</title>
	<s:head />
	<script src="jquery-1.3.2.js"></script> 
	<script src="jquery.tablesorter.min.js"></script> 
	<script>
	$(document).ready(function()     {         
			$("#toolsTable").tablesorter();     
		}); 
	</script>
</head>
<body>
<h2>Showing Tools Using Display Tags</h2>

<s:form action="displayTagSearchAndTableSorter">
	<s:textfield label="Search by name" name="name" /><s:submit/>
	<s:textfield label="Search by nickname" name="nickname" /><s:submit/>
</s:form>

<s:form action="displayTagAndTableSorter">
	<s:submit value="Show All" />
</s:form>
<p/>

<display:table id="toolsTable" name="tools">
	<display:column property="name" />
	<display:column property="nickname" />
</display:table>

<p/>

</body>
</html>